package org.jeecg.modules.monitoring.j_monitoring.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.monitoring.j_monitoring.entity.GatewayWarning;
import org.jeecg.modules.monitoring.j_monitoring.entity.GatewayWarningCount;

/**
 * @Description: 网关告警MAPPER
 * @Author: xiaoyq
 * @Date:   2023-05-09
 * @Version: V1.0
 */
public interface GatewayWarningMapper extends BaseMapper<GatewayWarning> {
    /**
     * 根据fdn获得网关告警统计数据
     * @param fdn
     * @return
     */
    GatewayWarningCount getWarningCount(@Param("fdn") String fdn);

    /**
     * 获得所有IP组
     * @return
     */
    List<GatewayWarning> getAllGroupIp();

    List<GatewayWarning> getAllGroupIpNormal();

    /**
     * 清空所有数据
     */
    void removeAll();
}
